import com.sun.xml.internal.ws.addressing.WsaActionUtil;

import java.util.Arrays;

public class Maopao {
    public static void main(String[] args) {
        //冒泡排序
        int[] nums = {66, 23, 100, 35, 77, 123};
        Arrays.sort(nums);
        //数组升序
        for(int i=0; i<=nums.length; i++) {
            System.out.println(nums[i] + "\t");
        }
        for (int i =nums.length; i>0;i--){
            System.out.println(nums[i]);
        }
    }
}


